package com.itheima.inner;

import java.util.concurrent.ConcurrentHashMap;

public class Test {
    public static void main(String[] args) {

        //Outer out=
        Outer.Inner inner = new Outer().new Inner();
        System.out.println(inner.i);
        inner.sing();
        Outer outer = new Outer();
        System.out.println(outer.age);


    }


}


class Outer{

    int  age=20;


    public void jump(){

        System.out.println("跳一曲");
    }
    public int getAge() {


        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    class Inner{
        int i=30;

        public void sing(){

            System.out.println("来一首");
        }

        public int getI() {
            return i;
        }

        public void setI(int i) {
            this.i = i;
        }


    }



}